package com.yjy.mapper;

import com.yjy.entity.Record;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RecordMapper {
    List<Record> selectAll(Record record);

    void insert(Record record);


    void updateById(Record record);

    @Delete("delete from record where id = #{id}")
    void deleteById(Integer id);


    @Select("SELECT * from `record` where id = #{id}")
    Record selectById(String id);
}
